import * as React from 'react'
import './loading.css'
import { useState } from 'react'
import runningGif from '../assets/images/running.gif'
function Loading({showLoading}) {
  // const [showLoading, setShowLoading] = useState(false);  
  const goIndex=()=>{
  }
  return (
    <>
    {
      showLoading?(
        <div className="loading" >
          	<div className="running-con">
              <img src={runningGif} mode=""></img>
              <p>RUNNING...</p>
            </div>
        </div>
      ):(
        <div></div>
      )
    }
	</>
  );
}

export default Loading;
